@use "./variable.scss";

html,
body {
    margin: 0;
    font-size: calc(100vw / 19.20);

}

@media screen and (max-width: 768px) {

    html,
    body {
        margin: 0;
        font-size: calc(100vw / 7.68);
    }
}

ul,
li {
    list-style: none;
}

a {
    text-decoration: none;
    display: block;
}

.contain {
    width: 14.4rem;
    max-width: 90%;
    margin: auto;
}

.fnt_10 {
    font-size: 0.1rem;
}

.fnt_20 {
    font-size: 0.2rem;
}

.fnt_30 {
    font-size: 0.3rem;
}

.fnt_40 {
    font-size: 0.4rem;
}

.fnt_50 {
    font-size: 0.5rem;
}

.fnt_60 {
    font-size: 0.6rem;
}

.line24 {
    line-height: 0.24rem;
}

.col-m {
    color: variable.$main-text;
}

.col-dl {
    color: variable.$delete-text;
}

.b-m {
    background-color: variable.$main-bg;
}

.col-f {
    color: #fff;
}

.col-0 {
    color: #000;
}

.col-3 {
    color: #333;
}

.col-6 {
    color: #666;
}

.col-7 {
    color: #777;
}

.col-8 {
    color: #888;
}

.col-9 {
    color: #999;
}

.w-s {
    white-space: nowrap;
}

.b-e {
    background-color: #eee;
}

.b-f {
    background: #fff;
}

.b-fa {
    background-color: #fafafa;
}

.opac {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dis-block {
    display: block;
}

.dis-none {
    display: none;
}

.flex-y {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

.dis-flex {
    display: flex !important;
}

.flex-row {
    display: flex;
    align-items: center;
}

.flex-y {
    display: flex;
    flex-direction: column;
}

.flex-box {
    flex: 1;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-dir-row {
    flex-direction: row;
}

.flex-dir-column {
    flex-direction: column;
}

.flex-x-center {
    justify-content: center;
}

.flex-x-between {
    justify-content: space-between;
}

.flex-x-around {
    justify-content: space-around;
}

.flex-x-end {
    justify-content: flex-end;
}

.flex-y-center {
    align-items: center;
}

.flex-y-end {
    align-items: flex-end;
}

.items-center {
    align-items: center;
}

.items-baseline {
    align-items: baseline;
}

.flex-five {
    box-sizing: border-box;
    flex: 0 0 50%;
}

.flex-three {
    float: left;
    width: 33.3%;
}

.flex-four {
    box-sizing: border-box;
    flex: 0 0 25%;
}

.a-f-s {
    align-self: start;
}

.t-l {
    text-align: left;
}

.t-c {
    text-align: center;
}

.t-r {
    text-align: right;
}

.p-a {
    position: absolute;
}

.p-r {
    position: relative;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.clearfix::after {
    clear: both;
    content: ' ';
    display: table;
}

.oh {
    overflow: hidden;
}

.tb-lr-center {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex !important;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

@for $i from 12 through 50 {
    .f-#{$i} {
        font-size: #{$i}px;
    }
}



@for $i from 0 through 100 {




    // 外边距margin-top
    .mt-#{$i} {
        margin-top: #{$i}px;
    }

    // 外边距margin-top
    .mx-#{$i} {
        margin-left: #{$i}px;
        margin-right: #{$i}px;
    }

    // 外边距margin-top
    .my-#{$i} {
        margin-top: #{$i}px;
        margin-bottom: #{$i}px;
    }

    // 外边距margin-bottom
    .mb-#{$i} {
        margin-bottom: #{$i}px;
    }

    // 外边距margin-left
    .ml-#{$i} {
        margin-left: #{$i}px;
    }

    .mr-#{$i} {
        margin-right: #{$i}px;
    }
}

@for $i from 0 through 90 {

    //内边距
    .p-#{$i} {
        padding: #{$i}px;
    }

    .pt-#{$i} {
        padding-top: #{$i}px;
    }

    .pl-#{$i} {
        padding-left: #{$i}px;
    }

    .pr-#{$i} {
        padding-right: #{$i}px;
    }

    .pb-#{$i} {
        padding-bottom: #{$i}px;
    }

    .px-#{$i} {
        padding: 0 #{$i}px;
    }

    .py-#{$i} {
        padding: #{$i}px 0;
    }

    .p-xy-#{$i} {
        padding: #{$i}px;
    }

    //  圆角
    .br-#{$i} {
        border-radius: #{$i}px;
    }

    //行高
    .lh-#{$i} {
        line-height: #{$i}px;
    }
}

.f-b {
    font-weight: bold;
}

.f-w {
    font-weight: 700;
}

.f-n {
    font-weight: 500;
}

.f-nf {
    font-weight: 400;
}

.padding-box {
    padding: 0 20px;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    display: none;
}

.one-line-hide {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.two-line-hide {
    display: -webkit-box;
    word-break: break-all;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.three-line-hide {
    display: -webkit-box;
    word-break: break-all;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.five-line-hide {
    display: -webkit-box;
    word-break: break-all;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.line-through {
    text-decoration: line-through;
}

.b-a {
    border: 1px solid #DEDEDE;
}

.b-r {
    border-right: 0.5px solid #eee;
}

.b-b {
    border-bottom: 0.5px solid #eee;
}

.b-t {
    border-top: 0.5px solid #eee;
}

.btn-normal:after {
    border: none;
}

.btn-normal.button-hover {
    color: inherit;
}

button:after {
    content: none;
    border: none;
}

.flex-row-bet {
    display: flex;
    justify-content: space-between;
}

.flex-row-bet-center {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.oneline-hide {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.twoline-hide {
    display: -webkit-box;
    word-break: break-all;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.threeline-hide {
    display: -webkit-box;
    word-break: break-all;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


.cursor {
    cursor: pointer;
}

:root {
    --el-color-primary: #0066FF;
    --el-font-size-base: 18px;
}

.el-form-item__error {
    font-size: 16px !important;
}

.el-dropdown {
    border: 0 !important;
}

.el-message__content {
    font-size: 18px !important;
}




.scrollbar::-webkit-scrollbar {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0.1;
        transform: translateY(150px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up-enter-active {
    animation: slideUp 1.5s ease-out forwards;
}